<div class="mr_moudle_head clearfix mr_w840">
	<div class="fl">
		<div class="mr_title">
			<span class="mr_title_l"></span><span class="mr_title_c">项目经验</span><span class="mr_title_r"></span>
		</div>
	</div>
	<div class="mr_head_r" onclick="resumeAdd('add_new_projects')" id="education">
		<i></i><em>添加</em>
	</div>
</div>
<div class="resume-content mr_w840">
    <form class="hide" id="add_new_projects">
         {!! csrf_field() !!}
        <div class="mr_add_work">
            <div class="form-group clearfix">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">项目名称</label>
                <div class="col-sm-9 col-xs-12">
                    <input type="text" class="form-control" name="name" placeholder="项目名称" value="">
                </div>
            </div>
            <div class="form-group clearfix">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">你的职责</label>
                <div class="col-sm-9 col-xs-12">
                    <input type="text" class="form-control" name=duty placeholder="你的职责" value="">
                </div>
            </div>
            <div class="form-group clearfix">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">项目起止时间</label>
                <div class="col-sm-4 col-xs-12">
                    <input size="16" type="text" class="form_datetime date form-control" name="start_at" data-date-format="yyyy-mm" value="" readonly>
                </div>
                <div class="col-sm-4 col-xs-12">
                    <input size="16" type="text" class="form_datetime input-append date form-control" name="end_at" data-date-format="yyyy-mm" value="" readonly>
                </div>
            </div>
            <div class="form-group clearfix">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">项目描述</label>
                <div class="col-sm-9 col-xs-12">
                    <textarea name="content" id="content" class="tex content"></textarea>
                </div>
            </div>
            <div class="form-inline mt-20">
                <div class="form-group">
                   <span class="resume-btn-ok"  onclick="saveResumePrj('/member/projects','add_new_projects','','add')">
                        保存
                  </span>  
                </div>
                <div class="form-group col-xs-offset-1">
                     <span class="resume-btn-cancel"  onclick="resumeAdd('add_new_projects')">
                        取消
                    </span>
                </div>
            </div>
        </div>
    </form>
    <div class="list_show" id="list_show_projects" >
       @foreach($projects as $prj)
        <div class="mr_jobe_list" id="projects_show_{{$prj->id}}">
            <div class="clearfix">
                <div class="mr_content_l">
					<div class="l2">
						<a class="projectTitle nourl">{{$prj->name}}</a>
						<p>{{$prj->duty}}</p>
					</div>
				</div>
				<div class="mr_content_r">
					<div class="mr_edit mr_c_r_t" onclick="resumeEdit('projects_edit_{{$prj->id}}','projects_show_{{$prj->id}}')">
						<i></i><em>编辑</em>
					</div>
					<span>{{$prj->start_at}} - {{$prj->end_at}}</span>
				</div>
            </div>
			<div class="mr_content_m">
			    {!! $prj->intro !!}
			</div>
        </div>
        <form class="hide" id="projects_edit_{{$prj->id}}">
             {!! csrf_field() !!}
             <input type="hidden" name="prj_id" value="{{$prj->id}}">
            <div class="mr_add_work">
                <div class="form-group clearfix">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">项目名称</label>
                    <div class="col-sm-9 col-xs-12">
                        <input type="text" class="form-control" name="name" placeholder="项目名称" value="{{$prj->name}}">
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">你的职责</label>
                    <div class="col-sm-9 col-xs-12">
                        <input type="text" class="form-control" name="duty" placeholder="你的职责" value="{{$prj->duty}}">
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">项目起止时间</label>
                    <div class="col-sm-4 col-xs-12">
                        <input size="16" type="text" class="form_datetime date form-control" name="start_at" data-date-format="yyyy-mm" value="{{$prj->start_at}}" readonly>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <input size="16" type="text" class="form_datetime input-append date form-control" name="end_at" data-date-format="yyyy-mm" value="{{$prj->end_at}}" readonly>
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">项目描述</label>
                    <div class="col-sm-9 col-xs-12">
                        <textarea name="content" id="content" class="tex content">{!!$prj->intro!!}</textarea>
                    </div>
                </div>
                <div class="form-inline mt-20">
                    <div class="form-group">
                      <span class="resume-btn-ok"  onclick="saveResumePrj('/member/projects','projects_edit_{{$prj->id}}','projects_show_{{$prj->id}}','edit')">
                            保存
                      </span>  
                    </div>
                    <div class="form-group col-xs-offset-1">
                       <span class="resume-btn-cancel"   onclick="resumeEdit('projects_edit_{{$prj->id}}','projects_show_{{$prj->id}}')">
                            取消
                        </span>
                    </div>
                    <div class="fr resume-delete">
                        <a href="javascript:void(0)" onclick="deleteAlert(this)"><span class="font-16 color-red2">删除本条</span></a>
                        <div class="delete-alter">
                            <p>确定删除本条信息？</p>
                            <div>
								<span class="resume-del-ok" onclick="deleteResume('projects','/member/resume/{{$prj->id}}','{{$prj->id}}','{{ csrf_token() }}')">删除</span>
								<span class="resume-del-cancel">取消</span>													
							</div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
        @endforeach
	</div>
</div>